<?php

namespace Home\Controller;

/**
 * Description of ParentController.class控制器实例
 * 
 * @author songanwei
 * @date 2016-1-4
 */
class ParentController extends \Common\Controller\BaseController {

    /**
     * 初始化检查
     */
    protected function _initialize() {
        $adminId = getAdminId();
        if (!$adminId) {
            $this->redirect('Public/login');
        }
        //获取用户名称
        $this->assign("adminName", getAdminName());
    }

}
